﻿using System;

using AnB.Common;

namespace AnB.Net
{
    public class NetObject
    {
        public NetObject(string alias)
        {
            mAlias = alias;
        }

        private string mAlias;
        public string Alias
        {
            get
            {
                return mAlias;
            }

            set
            {
                mAlias = value;
            }
        }

        private bool mStop = false;
        public virtual bool IsStop
        {
            get
            {
                return mStop;
            }
        }
        public virtual void Stop()
        {
            mStop = true;
            Log.Get().InfoFormat("{0} stopped", Alias);
        }
    }
}
